package jaux.tank.generator.component;

import javax.swing.JButton;
import javax.swing.JLabel;

public class AboutDialog extends javax.swing.JDialog {

	private static final long serialVersionUID = 1L;

	public AboutDialog(java.awt.Frame parent ) {
		super(parent );
		initComponents();
	}

	private void initComponents() {

		JLabel jLabel1 = new javax.swing.JLabel();
		JButton jButton1 = new javax.swing.JButton();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setTitle("About");
		setModal(true);
		setResizable(false);
		setSize(400, 300);
		setLocationRelativeTo(null);
		getContentPane().setLayout(null);
		getContentPane().add(jLabel1);
		getContentPane().add(jButton1);
		jLabel1.setText("Tank Generator");
		jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		jLabel1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
		jLabel1.setBounds(0, 10, 400, 200);
		jButton1.setText("OK");
		jButton1.addActionListener(e ->{ 
			this.dispose();
		});
		jButton1.setBounds(300, 220, 80, 30);

	}
}
